package com.qf.service.impl;


import com.qf.dao.ProfileDao;
import com.qf.pojo.Profile;
import com.qf.service.ProfileService;

import java.util.List;

public class ProfileServiceImpl implements ProfileService {

    private static ProfileDao profileDao;

    public void setProfileDao(ProfileDao profileDao) {
        this.profileDao = profileDao;
    }

    @Override
    public List<Profile> findByPage() {

        List<Profile> profileList=profileDao.selectByPage();
        return profileList;
    }

    @Override
    public Profile findById(int id) {
        return profileDao.selectById(id);
    }

    @Override
    public void modify(Profile profile) {
        profileDao.update(profile);
    }


}
